package com.sky.mapper;
import java.time.LocalDateTime;
import org.apache.ibatis.annotations.Param;
import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sky.entity.Orders;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface OrderMapper extends BaseMapper<Orders> {

    /**
     * 新增订单
     * @param orders
     * @return int
     * @description description
     */
    int insertSelective(Orders orders);

    /**
     * 查询超时未支付订单
     * @param status
     * @param maxOrderTime
     * @return List<Orders>
     * @description description
     */
    List<Orders> getByStatusAndOrderTimeLessThan(@Param("status")Integer status,@Param("maxOrderTime")LocalDateTime maxOrderTime);






}
